package com.sumi.erp.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sumi.common.annotation.Excel;
import com.sumi.common.core.domain.BaseEntity;

/**
 * 实体仓库对象 base_real_warehouse
 * 
 * @author fgf67@163.com
 * @date 2024-06-27
 */
public class BaseRealWarehouse extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 实体仓id */
    private Long id;

    /** 仓库名称 */
    @Excel(name = "仓库名称")
    private String locationName;

    /** 仓库编号 */
    @Excel(name = "仓库编号")
    private String warehouseId;

    /** 仓库所在省份id */
    @Excel(name = "仓库所在省份id")
    private Long provinceId;

    /** 所在城市id */
    @Excel(name = "所在城市id")
    private Long cityId;

    /** 所在区域id */
    @Excel(name = "所在区域id")
    private Long areaId;

    /** 仓库地址 */
    @Excel(name = "仓库地址")
    private String locationAddr;

    /** 仓库类型 1协议仓 2公共仓 */
    @Excel(name = "仓库类型 1协议仓 2公共仓")
    private Integer locationType;

    /** 合同开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "合同开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date contractBeginDate;

    /** 合同结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "合同结束日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date contractEndDate;

    /** 免租期(天) */
    @Excel(name = "免租期(天)")
    private Long freePeriod;

    /** 是否可用(1启用 0停用) */
    @Excel(name = "是否可用(1启用 0停用)")
    private Integer isAvailable;

    /** 联系人 */
    @Excel(name = "联系人")
    private String contacts;

    /** 手机 */
    @Excel(name = "手机")
    private String tel;

    /** 固定电话 */
    @Excel(name = "固定电话")
    private String phone;

    /** 传真 */
    @Excel(name = "传真")
    private String fax;

    /** 创建人id */
    @Excel(name = "创建人id")
    private Long createUid;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setLocationName(String locationName) 
    {
        this.locationName = locationName;
    }

    public String getLocationName() 
    {
        return locationName;
    }
    public void setWarehouseId(String warehouseId) 
    {
        this.warehouseId = warehouseId;
    }

    public String getWarehouseId() 
    {
        return warehouseId;
    }
    public void setProvinceId(Long provinceId) 
    {
        this.provinceId = provinceId;
    }

    public Long getProvinceId() 
    {
        return provinceId;
    }
    public void setCityId(Long cityId) 
    {
        this.cityId = cityId;
    }

    public Long getCityId() 
    {
        return cityId;
    }
    public void setAreaId(Long areaId) 
    {
        this.areaId = areaId;
    }

    public Long getAreaId() 
    {
        return areaId;
    }
    public void setLocationAddr(String locationAddr) 
    {
        this.locationAddr = locationAddr;
    }

    public String getLocationAddr() 
    {
        return locationAddr;
    }
    public void setLocationType(Integer locationType) 
    {
        this.locationType = locationType;
    }

    public Integer getLocationType() 
    {
        return locationType;
    }
    public void setContractBeginDate(Date contractBeginDate) 
    {
        this.contractBeginDate = contractBeginDate;
    }

    public Date getContractBeginDate() 
    {
        return contractBeginDate;
    }
    public void setContractEndDate(Date contractEndDate) 
    {
        this.contractEndDate = contractEndDate;
    }

    public Date getContractEndDate() 
    {
        return contractEndDate;
    }
    public void setFreePeriod(Long freePeriod) 
    {
        this.freePeriod = freePeriod;
    }

    public Long getFreePeriod() 
    {
        return freePeriod;
    }
    public void setIsAvailable(Integer isAvailable) 
    {
        this.isAvailable = isAvailable;
    }

    public Integer getIsAvailable() 
    {
        return isAvailable;
    }
    public void setContacts(String contacts) 
    {
        this.contacts = contacts;
    }

    public String getContacts() 
    {
        return contacts;
    }
    public void setTel(String tel) 
    {
        this.tel = tel;
    }

    public String getTel() 
    {
        return tel;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setFax(String fax) 
    {
        this.fax = fax;
    }

    public String getFax() 
    {
        return fax;
    }
    public void setCreateUid(Long createUid) 
    {
        this.createUid = createUid;
    }

    public Long getCreateUid() 
    {
        return createUid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("locationName", getLocationName())
            .append("warehouseId", getWarehouseId())
            .append("provinceId", getProvinceId())
            .append("cityId", getCityId())
            .append("areaId", getAreaId())
            .append("locationAddr", getLocationAddr())
            .append("locationType", getLocationType())
            .append("contractBeginDate", getContractBeginDate())
            .append("contractEndDate", getContractEndDate())
            .append("freePeriod", getFreePeriod())
            .append("remark", getRemark())
            .append("isAvailable", getIsAvailable())
            .append("contacts", getContacts())
            .append("tel", getTel())
            .append("phone", getPhone())
            .append("fax", getFax())
            .append("createTime", getCreateTime())
            .append("createUid", getCreateUid())
            .toString();
    }
}
